import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import store from '../../store'
// import '../../components/elementUI.js'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faUserSecret } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
library.add(faUserSecret);
Vue.component('font-awesome-icon', FontAwesomeIcon);

Vue.config.productionTip = false
// 统一设置服务器地址
// axios.defaults.baseURL = 'http://127.0.0.1:8080'
axios.defaults.headers.post['Content-Type'] = 'application/json';
Vue.prototype.$axios = axios

new Vue({
		store,
		render: h => h(App)
}).$mount('#app')
